﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CustomerServiceCenter.Models
{
    public class TicketPCModel
    {
        public long ID { get; set; }
        public string TicketNo { get; set; }

        public string Client { get; set; }

        public string Project { get; set; }

        public string Customer { get; set; }

        public DateTime OpenDate { get; set; }

        public string OpenBy { get; set; }

        public string IssueType { get; set; }

        public string State { get; set; }

        public string AssignTo { get; set; }

        public int Ratings { get; set; }


        public int IsFromWeChat { get; set; }


    }

    public class TicketDetailModel
    {
        public long ID { get; set; }
        public string TicketNo { get; set; }

        public string Client { get; set; }

        public string Project { get; set; }

        public string Customer { get; set; }

        public string UserName { get; set; }

        public string TEL { get; set; }

        public string Email { get; set; }

        public string IssueType { get; set; }

        public string Discription { get; set; }

        public int StateID { get; set; }
        public string State { get; set; }

        public int AssignerID { get; set; }
        public string AssignTo { get; set; }

        public string Remarks { get; set; }

        public string[] Attachments { get; set; }


        public long ApplicationID { get; set; }

        public string ServiceComments { get; set; }

        public int IsFromWeChat { get; set; }

        public System.DateTime Opened { get; set; }

        public System.DateTime? ResolvedTime { get; set; }

        public System.DateTime? ClosedTime { get; set; }

        public string ResolvedBy { get; set; }

        public string ClosedBy { get; set; }

        public string Priority { get; set; }

        public int PriorityNum { get; set; }

        public List<InputFieldData> Data { get; set; }
    }

    public class TicketsRequestModel
    {
        //public int status { get; set; }
        public int operatorId { get; set; }
        public int project { get; set; }
        public string startDate { get; set; }
        public string endDate { get; set; }
        public int pageIndex { get; set; }
        public int pageSize { get; set; }
        public int[] status { get; set; }
        public string type { get; set; }
        public int IsFromWeChat { get; set; }

        public int Priority { get; set; }

        public int IssueType { get; set; }

        public override string ToString()
        {
            return "\r\n\r\noperatorId:" + this.operatorId
                   + "\r\nproject:" + this.project
                   + "\r\nstartDate:" + this.startDate
                   + "\r\nendDate:" + this.endDate
                   + "\r\npageIndex:" + this.pageIndex
                   + "\r\npageSize:" + this.pageSize
                   + "\r\nstatus:" + this.status
                   + "\r\ntype:" + this.type
                   + "\r\nIsFromWeChat:" + this.IsFromWeChat;
        }
    }


    public class TicketsAndMaxPage
    {

        public List<TicketPCModel> TicketPCModelList { get; set; }

        public int MaxPage { get; set; }
    }

    public class AssignOrModifyStatusModel
    {
        public int TicketID { get; set; }

        public int Assigner { get; set; }

        public int Status { get; set; }

        // public string Type { get; set; }

        public int IsFromWeChat { get; set; }

        //public string Remarks { get; set; }

        public string Description { get; set; }

        public long IssueType { get; set; }

        public string Solution { get; set; }

        public int PriorityNum { get; set; }

    }
}